﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/Admin.Master" Inherits="System.Web.Mvc.ViewPage<dynamic>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
	GetCates
</asp:Content>

<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">

 <link href="../../Content/Admin/control.css" rel="stylesheet" type="text/css" />
    <div>
    <table class="TableView" width="100%">
   <tr class="trHeader">
   <td>Mã loại tin</td>
     <td style="width: 240px">Tên loại tin</td>
       <td>Ghi chú</td>
       <td>Chức năng</td>
   </tr>
   <%if (ViewData["listcate"] != null)
     { %>
    <%foreach (VgoCardChange.Models.Objects.Cate cate in (List<VgoCardChange.Models.Objects.Cate>)ViewData["listcate"])
      { %>
      <tr class="trOdd">
      <td><%:cate.CateID%></td>
      <td style="width: 240px"><%:cate.CateName%></td>
      <td><%:cate.Description%></td>
      <td>
      <div class="Control" style="background-color:White; border-style:none;">
      <%:Html.ActionLink("Sửa", "EditCate", new { CateID = cate.CateID }, new { @class = "vedit" })%>
         <%:Html.ActionLink("Xóa", "DeleteCate", new { CateID = cate.CateID }, new { @class = "vdelete" })%>
         </div>
         </td>
      </tr>

    <%} %>
    <%} %>
     </table>
     <div class="Control">
     <%:Html.ActionLink("Tạo mới", "CreateCate", "Cate", new { @class = "vadd" })%>
     <%:Html.ActionLink("Quay lại", "GetCates", "Cate", new { @class = "vback" })%>
     </div>
    </div>

</asp:Content>
